document.addEventListener("plusready",  function()
{
    var B = window.plus.bridge;
    var xmpp = 
    {
        "login":function(username,password){
            return B.exec("xmpp", "login", [username,password]);
        }
    };
    window.plus.xmpp = xmpp;
}, true);